Raise an exception if an error appears on the pipes to our children, and make
authoremellor@ewan <emellor@ewan>
Thu, 6 Oct 2005 09:13:11 +0000 (10:13 +0100)
committeremellor@ewan <emellor@ewan>
Thu, 6 Oct 2005 09:13:11 +0000 (10:13 +0100)
commit4c78f9561d3a9e09484e1391194d9de7bf8060ab
tree0d3dd32d4868db2808e144c5c1be0c560b6ff4e0
parenta00e0c297c90a31b6a1ba56d8e97fcee45918745
Raise an exception if an error appears on the pipes to our children, and make
sure that the child's pipes are closed even under that exception.  Move the
handling of POLLHUP to the end of the loop, so that we guarantee to read any
remaining data from the child if POLLHUP and POLLIN appear at the same time.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendCheckpoint.py